package org.jeecg.vo.basedata;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 楼宇
 * @Author: jeecg-boot
 * @Date:   2019-07-02
 * @Version: V1.0
 */
@Data
public class BaseCustomerPage {

	private String id;
	private String roomid;
	private String floorid;

	private String projectId;
	private String code;
	private String remarks;
	private String explainyy;


	/**房间名称*/
	@Excel(name = "房间名称", width = 15)
	private String roomName;

	/**房间面积*/
	@Excel(name = "房间面积", width = 15)
	private java.math.BigDecimal buildArea;

	/**住户姓名*/
	@Excel(name = "住户姓名", width = 15)
	private String name;

	@Excel(name = "住户类型", width = 15)
	@Dict(dicCode = "customer_category")
	@ApiModelProperty(value = "住户类型(1.业主,2.同住人,3.租客)")
	private String customerCategory;

	/**住户电话*/
	@Excel(name = "住户电话", width = 15)
	private String mobile;

	/**房间状态  0空置 1迁入 3迁出*/
	@Excel(name = "房间状态", width = 15,dicCode="room_status")
	@Dict(dicCode = "room_status")
	@ApiModelProperty(value = "roomStatus")
	private String roomStatus;

	/*租赁状态 0:未租  1:已租*/
	@Excel(name = "租赁状态", width = 15,dicCode="rent_status")
	@Dict(dicCode = "rent_status")
	@ApiModelProperty(value = "rentStatus")
	private String rentStatus;

	/**迁入时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "checkInDate")
	private Date startDate;

	/**开始收费时间*/
	@Excel(name = "开始收费时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "开始收费时间")
	private Date chargeTime;


	/**company*/
	@ApiModelProperty(value = "company")
	private String company;
	/**手机号码*/
	@Excel(name = "telphone", width = 15)
	@ApiModelProperty(value = "telphone")
	private String telphone;


	/**房屋类型*/
	@Excel(name = "customerType", width = 15)
	@Dict(dicCode = "customer_type")
	@ApiModelProperty(value = "customerType")
	private String customerType;
	/**房间属性*/
	@Excel(name = "customerAttr", width = 15)
	@Dict(dicCode = "customer_attr")
	@ApiModelProperty(value = "customerAttr")
	private String customerAttr;


	/**迁出时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "迁出时间")
	private Date endDate;

	@Excel(name = "修改人", width = 15)
	private String updateName;

	@Excel(name = "修改时间", width = 15)
	private Date updateTime;

}
